{% extends 'rango/base.html' %}

{% block title %}Register{% endblock %}

{% block body_block %}

    <h1>Register with Rango</h1>
    
    {% if registered %}
    Rango says : <strong>thank you for registration!</strong>
    <a href="/rango/">Return to the homepage.</a></br>
    {% else %}
    Rango says: <strong>register here!</strong></br>
    
    <form id="user_form" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <!--To display forms  as_p form used (each input in <p></p> -->
        {{ user_form.as_p }}
        {{ profile_form.as_p }}
        
        <input type="submit" name="submit" value="Register"/>
    </form>
    {% endif %}
{% endblock %}
